const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  css: {
    loaderOptions: {
      less: {
        lessOptions: {
          javascriptEnabled: true
        }
      }
    },
  },
  devServer: {
    proxy: {
      '/api': {
        target: 'http://gmall-h5-api.atguigu.cn',
        pathRewrite: { '^/api': '' },
        ['/api/']: '',
      },
      '/hou': {
        target: 'http://localhost:8085',
        pathRewrite: { '^/hou': '' },
        ['/hou/']: '',
      },

    }
  }

})
